//
//  FGTabBarBaseController.swift
//  FGApp
//
//  Created by ryan on 2019/4/29.
//  Copyright © 2019 ryan. All rights reserved.
//

import UIKit

class FGTabBarBaseController: UIViewController {

    var contentView : UIView!
    
    override func loadView() {
        super.loadView()
        
        contentView = UIView(frame: KSafeAreaFrameWithTabBar)
        contentView.backgroundColor = UIColor.white
        view.addSubview(contentView)
        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        self.navigationController?.navigationBar.isHidden = true
        
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        
//        self.navigationController?.navigationBar.isHidden = false
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
